package com.li.cong;

import com.li.cong.config.LoadBalancerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.util.logging.Logger;

@SpringBootApplication(scanBasePackages="com.li.cong")
@EnableWebMvc
@LoadBalancerClient(name = "demoservice", configuration = LoadBalancerConfig.class)
public class App {

    private static final Logger logger = Logger.getLogger(App.class.getName());

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(App.class);
        logger.info("项目启动");
        springApplication.run(args);
    }
}
